package com.qingxuan.mybatis.plus.study.demo1.service.impl;

import com.qingxuan.mybatis.plus.study.demo1.entity.SysUser;
import com.qingxuan.mybatis.plus.study.demo1.mapper.SysUserMapper;
import com.qingxuan.mybatis.plus.study.demo1.service.SysUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author yy.lei
 * @since 2021-10-16
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {

	@Resource
	private SysUserMapper sysUserMapper;

	@Override
	public List<SysUser> queryDeptUsers(long deptId) {
		return sysUserMapper.queryDeptUsersByDeptId(deptId);
	}

}
